<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>[%pack:public_pack-espcms_soft_title%]</title>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_font_icon.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_public.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_all.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_font_icon.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_framework.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_select.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/upload_file.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/file.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/file.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery-ui.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/lngpack_cn.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/bootstrap.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_function.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_formvalidation.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_form.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_dialog.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_page.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_filetool.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/webuploader/webuploader.js"></script>
		<script type="text/javascript">
			var uploadSWF = '[%ESPCMS_ADMIN_URL%]js/webuploader/Uploader.swf';
			var upfileType = '[%$upfileType%]';
			var selectnum = '[%$selectnum%]';
			var upfile_ext = '[%$upfile_ext%]';
			var upload_max_filesize = '[%$net_upload_max_filesize%]';
			var upload_max_filesize_byte = '[%$upload_max_filesize_byte%]';
			var chunksize = '[%$chunksize%]';

			$(document).ready(function () {

				$('.espcms_close_dialog').click(function () {
					parent.closedialogbox();
				});

				$('input[type=checkbox],input[type=radio]').espcms_checkbox();

				$('#file_select_ok_botton').click(function () {
					select_reture();
				});
			});

			function select_reture() {
				var select_filelist = $('#select_filelist').val();
				var select_fileurllist = $('#select_fileurllist').val();
				var select_titlelist = $('#select_titlelist').val();
				var select_sizelist = $('#select_sizelist').val();
				var select_extlist = $('#select_extlist').val();
				parent.returnInputFile(select_filelist, select_fileurllist, select_titlelist, select_sizelist, select_extlist);
			}
		</script>
	</head>
	<body class="dialog_body">
		<form class="form-horizontal admin-form" enctype="multipart/form-data" id="saveFile" action="[%$upfileave%]">
			<input type="hidden" name="token_key" id="token_key" value="[%$token.token_key%]"/>
			<input type="hidden" name="token_name" id="token_name" value="[%$token.token_name%]"/>
			<input type="hidden" name="upFileType" id="upFileType" value="[%$upfileType%]"/>
			<input type="hidden" name="select_filelist" id="select_filelist"/>
			<input type="hidden" name="select_fileurllist" id="select_fileurllist"/>
			<input type="hidden" name="select_titlelist" id="select_titlelist"/>
			<input type="hidden" name="select_sizelist" id="select_sizelist"/>
			<input type="hidden" name="select_extlist" id="select_extlist"/>
			<div class="upload_botton_list">
				<dt class="espcms_upload_botton">
					<dl>
						<select class="selectpicker form-control" name="filedir_id" id="filedir_id" data-size="5" title="[%pack:filemanage_pack-espcms_filenamage_select_filedir%]">
							[%forlist from=$fileDir key=i%]
							<option value="[%$fileDir[i].filedir_id%]">[%if $fileDir[i].level>0%]├─[%/if%][%$fileDir[i].level|treelist('─')%] [%$fileDir[i].filedir_name%]</option>
							[%/forlist%]
						</select>
					</dl>
					[%if $upfileType=='image'%]
					<dl>
						<select class="selectpicker form-control" name="isZoom" id="isZoom" data-size="8" title="[%pack:filemanage_pack-espcms_filenamage_select_isZoom%]">
							<option value="1">[%pack:filemanage_pack-espcms_filenamage_select_isZoom_1%]</option>
							<option value="0">[%pack:filemanage_pack-espcms_filenamage_select_isZoom_0%]</option>
						</select>
					</dl>
					<dl>
						<select class="selectpicker form-control" name="isWater" id="isWater" data-size="8" title="[%pack:filemanage_pack-espcms_filenamage_select_isWater%]">
							<option value="1">[%pack:filemanage_pack-espcms_filenamage_select_isWater_1%]</option>
							<option value="0">[%pack:filemanage_pack-espcms_filenamage_select_isWater_0%]</option>
						</select>
					</dl>
					[%/if%]
				</dt>
			</div>

			<div id="espcms_upload" class="upload_pic_list">
				<ul class="espcms_uploadPicList">
					<li id="select_pic_botton" class="select_pic_botton">
						<div id="picker">[%pack:filemanage_pack-espcms_filenamage_botton_select_file%]</div>
					</li>
				</ul>
			</div>
		</form>
		<div class="dialogbotton">
			<div class="dialog_buttonset" id="batuploadbotton">
				<button type="button" id="file_upfile_botton" class="btn btn-danger espcms_submit_dialog" style="display: none;">[%pack:botton_pack-espcms_botton_upfile_ok%]</button>
				<button type="button" id="file_select_ok_botton" class="btn btn-green" style="display: none;">[%pack:botton_pack-espcms_botton_select_ok%]</button>
				<button type="button" class="btn btn-lightgray espcms_close_dialog">[%pack:botton_pack-espcms_botton_close_window%]</button>
			</div>
		</div>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_upload_bat.js"></script>
	</body>
</html>
